/*
	dialogueAnime: Affiche une boite de dialogue contenant le contenue du texte soihaiter
*/
function dialogueAnime()
{
	$(document).ready(function()
	{
		$("#dialog1").dialog({
		autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener1").click(function() {
			$("#dialog1").dialog( "open" );
			return false;
		});
		
		$("#dialog2").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener2").click(function() {
			$("#dialog2").dialog( "open" );
			return false;
		});
		
		
		$("#dialog3").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener3").click(function() {
			$("#dialog3").dialog( "open" );
			return false;
		});
		
		$("#dialog4").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener4").click(function() {
			$("#dialog4").dialog( "open" );
			return false;
		});
		
		$("#dialog5").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener5").click(function() {
			$("#dialog5").dialog( "open" );
			return false;
		});
		

	});
		
}




/*
	dialogueAnimeBis: Affiche une boite de dialogue contenant le contenue du texte soihaiter
*/
function dialogueAnimeBis()
{
	$(document).ready(function()
	{
		$("#dialog11").dialog({
		autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener11").click(function() {
			$("#dialog11").dialog( "open" );
			return false;
		});
		
		$("#dialog12").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener12").click(function() {
			$("#dialog12").dialog( "open" );
			return false;
		});
		
		
		$("#dialog13").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener13").click(function() {
			$("#dialog13").dialog( "open" );
			return false;
		});
		
		$("#dialog14").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener14").click(function() {
			$("#dialog14").dialog( "open" );
			return false;
		});
		
		$("#dialog15").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener15").click(function() {
			$("#dialog15").dialog( "open" );
			return false;
		});
		

	});
		
}

/*
	dialogueAnimeBis: Affiche une boite de dialogue contenant le contenue du texte soihaiter
*/
function dialogueAnimeCom()
{
	$(document).ready(function()
	{
		$("#dialog21").dialog({
		autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener21").click(function() {
			$("#dialog21").dialog( "open" );
			return false;
		});
		
		$("#dialog22").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener22").click(function() {
			$("#dialog22").dialog( "open" );
			return false;
		});
		
		
		$("#dialog23").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener23").click(function() {
			$("#dialog23").dialog( "open" );
			return false;
		});
		
		$("#dialog24").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener24").click(function() {
			$("#dialog24").dialog( "open" );
			return false;
		});
		
		$("#dialog25").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener25").click(function() {
			$("#dialog25").dialog( "open" );
			return false;
		});
		

	});
		
}


/*
	dialogueAnimeActu: Affiche une boite de dialogue contenant le contenue de l'actualité
*/
function dialogueAnimeActu()
{
	$(document).ready(function()
	{
		$("#dialog1").dialog({
		autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener1").click(function() {
			$("#dialog1").dialog( "open" );
			return false;
		});
		
		$("#dialog2").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener2").click(function() {
			$("#dialog2").dialog( "open" );
			return false;
		});
		
		
		$("#dialog3").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener3").click(function() {
			$("#dialog3").dialog( "open" );
			return false;
		});
		
		$("#dialog4").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener4").click(function() {
			$("#dialog4").dialog( "open" );
			return false;
		});
		
		$("#dialog5").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener5").click(function() {
			$("#dialog5").dialog( "open" );
			return false;
		});
		
		$("#dialog6").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener6").click(function() {
			$("#dialog6").dialog( "open" );
			return false;
		});
		
		$("#dialog7").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener7").click(function() {
			$("#dialog7").dialog( "open" );
			return false;
		});
		
		$("#dialog8").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener8").click(function() {
			$("#dialog8").dialog( "open" );
			return false;
		});
		
		$("#dialog9").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener9").click(function() {
			$("#dialog9").dialog( "open" );
			return false;
		});
		
		$("#dialog10").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener10").click(function() {
			$("#dialog10").dialog( "open" );
			return false;
		});
		
		$("#dialog11").dialog({
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				effect: "explode",
				duration: 1000
			}
		});

		$("#opener11").click(function() {
			$("#dialog11").dialog( "open" );
			return false;
		});

	});
		
}



/*
	dialogueAnimeMyTexteOk: Affiche une boite de dialogue contenant le contenue du texte correspondant à l'atelier
*/
function dialogueAnimeMyTexte()
{
	$(document).ready(function() {
		
		// Si l'utilisateur a publier son texte dans l'atelier
		$(".myTexteOk").dialog({
			modal: true,
			width: 500,
			autoOpen: false,
			show: {
				effect: "blind",
				duration: 1000
			},
			hide: {
				duration: 250
			}
		});
		
		$(".showHideOk").click(function() {
			var idLien = $(this).attr("id").substring(6);
			
			$("#divOk"+idLien).dialog( "open" );
			return false;
		});
		 
	});				
}